package com.ruoyi.chat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 朋友圈对象 friend_circle
 * 
 * @author zhc
 * @date 2025-05-31
 */
public class FriendCircle extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 哪个用户发的朋友圈，用户id */
    @Excel(name = "哪个用户发的朋友圈，用户id")
    private String userId;

    /** 文字内容 */
    @Excel(name = "文字内容")
    private String words;

    /** 图片内容，url用逗号分割 */
    @Excel(name = "图片内容，url用逗号分割")
    private String images;

    /** 单个视频的url */
    @Excel(name = "单个视频的url")
    private String video;

    /** 发布朋友圈的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布朋友圈的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }

    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }

    public void setWords(String words) 
    {
        this.words = words;
    }

    public String getWords() 
    {
        return words;
    }

    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }

    public void setVideo(String video) 
    {
        this.video = video;
    }

    public String getVideo() 
    {
        return video;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("words", getWords())
            .append("images", getImages())
            .append("video", getVideo())
            .append("publishTime", getPublishTime())
            .toString();
    }
}
